import Vue from 'vue'
import Router from 'vue-router'
import index from 'views/index.vue'
import demo from 'views/content/demo'
import demo1 from 'views/content/demo1'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: index,
      children: [
        {
          path: '/demo',
          component: demo
        },
        {
          path: '/demo1',
          component: demo1
        }
      ]
    }
  ]
})
